<?php

namespace App\Events\Auth;

use App\Models\AbstractUser;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Queue\SerializesModels;

class Logout
{
    use SerializesModels;

    /**
     * 当前用户
     *
     * @var Authenticatable|AbstractUser
     */
    public $user;

    /**
     * 退出登录事件
     *
     * @param Authenticatable $user
     */
    public function __construct(Authenticatable $user)
    {
        $this->user = $user;
    }
}
